<?php header("Location 404.htm");Die();/*
<code>
//*/
ereg('^:([^ ]+).*',$GLOBALS['IRC']->GetLastLine(),$tmp);
$mask = $tmp[1];
$user=$GLOBALS['Users']->MaskToUser($mask);
if($user!=false)
{
  ereg('([^!]+)!([^ ]+)',$mask,$tmp);
  $actualnick = $tmp[1];
  ereg('#.+$',$GLOBALS['IRC']->GetLastLine(),$channel);
  $GlobalFlags = $GLOBALS['Users']->Flags($mask);
  $Flags = $GLOBALS['Users']->Flags($mask,$channel[0]);
  $o = false;
  $v = false;
  foreach ($Flags as $flag)
  {
    if ($flag == 'v') $v = true;
    if ($flag == 'o') $o = true;
  }
  foreach ($GlobalFlags as $flag)
  {
    if ($flag == 'v') $v = true;
    if ($flag == 'o') $o = true;
  }
  echo 'do kanalu '.$channel[0].' vstoupil(a)'.$actualnick."\n";
  if ($v) $GLOBALS['IRC']->ScWrite('MODE '.$channel[0].' +v '.$actualnick);
  if ($o) $GLOBALS['IRC']->ScWrite('MODE '.$channel[0].' +o '.$actualnick);
}
</code>
*/?>